-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added location button in address search #29609
Added location button in address search #29609
Conversation
…urrentTargetInsideContainer
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
@dannymcclain @narefyev91 One of you needs to copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
We have a deploy blocker here that is causing Android native to crash when clicking on the request money option. For now, i applied this diff to make the test video Diffdiff --git a/src/components/TabSelector/TabIcon.js b/src/components/TabSelector/TabIcon.js
index 85f1cd912f..b6d6e87306 100644
--- a/src/components/TabSelector/TabIcon.js
+++ b/src/components/TabSelector/TabIcon.js
@@ -26,13 +26,13 @@ const defaultProps = {
function TabIcon({icon, activeOpacity, inactiveOpacity}) {
return (
<View>
- <Animated.View style={{opacity: inactiveOpacity}}>
+ <Animated.View style={inactiveOpacity}>
<Icon
src={icon}
fill={themeColors.icon}
/>
</Animated.View>
- <Animated.View style={[StyleSheet.absoluteFill, {opacity: activeOpacity}]}>
+ <Animated.View style={[StyleSheet.absoluteFill, activeOpacity]}>
<Icon
src={icon}
fill={themeColors.iconMenu}
diff --git a/src/components/TabSelector/TabLabel.js b/src/components/TabSelector/TabLabel.js
index 32c8a384d8..d67e8b0c7c 100644
--- a/src/components/TabSelector/TabLabel.js
+++ b/src/components/TabSelector/TabLabel.js
@@ -25,10 +25,10 @@ const defaultProps = {
function TabLabel({title, activeOpacity, inactiveOpacity}) {
return (
<View>
- <Animated.View style={[{opacity: activeOpacity}]}>
+ <Animated.View style={activeOpacity}>
<Text style={styles.tabText(true)}>{title}</Text>
</Animated.View>
- <Animated.View style={[StyleSheet.absoluteFill, {opacity: inactiveOpacity}]}>
+ <Animated.View style={[StyleSheet.absoluteFill, inactiveOpacity]}>
<Text style={styles.tabText(false)}>{title}</Text>
</Animated.View>
</View> |
isDisabled={props.network.isOffline} | ||
/> | ||
)} | ||
{!props.value && <Text style={[styles.textLabel, styles.colorMuted, styles.pv2, styles.ph3, styles.overflowAuto]}>{props.translate('common.recentDestinations')}</Text>} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it can be potential crash - i will suggest to use !!props.value
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, this is also on the main branch
App/src/components/AddressSearch/index.js
Line 305 in 834b3d2
!props.value && |
It's for hiding header text only when the value is falsy.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup let's be safe here and add something like !Boolean(props.value)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@narefyev91 That change broke the linter, so I added a new commit to remove the change.
The console warning -> I am not able to get the console error you face, actually it shouldn't be there since its using
|
Thanks for the review @narefyev91. I addressed your comments above. |
Yup - error is not reproduced any more. |
Reviewer Checklist
Screenshots/VideosWebweb1.mov8mb.video-1yQ-cXVsMwA2.mp4Mobile Web - Chromeandroid-web.movMobile Web - Safariios-web.movDesktopdesktop.movdesktop1.moviOSios.movios1.movios2.movAndroidandroid.movandroid2.mov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
🎀 👀 🎀 C+ reviewed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/hayata-suenaga in version: 1.3.86-0 🚀
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.3.86-5 🚀
|
Details
This PR is a follow-up for #25855 to update the designs for the current location button. It adds the current location button to the address search dropdown along with some other UX behaviors mentioned here.
Fixed Issues
$ #25855
PROPOSAL:
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android.Native.mp4
Android: mWeb Chrome
mWeb.Chrome.mp4
iOS: Native
IOS.Native.mp4
iOS: mWeb Safari
mWeb.Safari.mp4
MacOS: Chrome / Safari
Chrome
Web.Chrome.mp4
Safari
Web.Safari.mp4
MacOS: Desktop
Desktop.Native.mp4